﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace Luna小店.UC.面料库存
{
    public partial class Form进销存门户 : DevExpress.XtraBars.Ribbon.RibbonForm
    {
        public Form进销存门户()
        {
            InitializeComponent();
            // Handling the QueryControl event that will populate all automatically generated Documents
            this.widgetView1.QueryControl += widgetView1_QueryControl;
        }

        // Assigning a required content for each auto generated Document
        void widgetView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e)
        {

            if (e.Document == XtraUserControl按钮导航Document)
                e.Control = new Luna小店.UC.面料库存.门户UC.XtraUserControl按钮导航();
            if (e.Document == XtraUserControl出入库申请Document)
                e.Control = new Luna小店.UC.面料库存.门户UC.XtraUserControl出入库申请();
            if (e.Document == XtraUserControl待领料订单Document)
                e.Control = new Luna小店.UC.面料库存.门户UC.XtraUserControl待领料订单();
            if (e.Document == XtraUserControl滞销商品Document)
                e.Control = new Luna小店.UC.面料库存.门户UC.XtraUserControl滞销商品();
            if (e.Control == null)
                e.Control = new System.Windows.Forms.Control();
        }
    }
}